luci-app-opkg: fix parsing package dependencies with version constraints
authorJo-Philipp Wich <[email protected]>
Fri, 3 Jun 2022 11:36:02 +0000 (13:36 +0200)
committerJo-Philipp Wich <[email protected]>
Fri, 3 Jun 2022 11:36:02 +0000 (13:36 +0200)
commitb84791bd029c2aaa67cbc06a15d23828f62f4608
treedf3ef3d3eeb13bd6ad934713ba2ba3dc0162c4bc
parent24723a006482c3b664ddffe0f2752386085cbe0f
luci-app-opkg: fix parsing package dependencies with version constraints

Due to improper ordering of regexp alternatives, version constraint operators
might get undermatched.

Fixes: https://github.com/openwrt/openwrt/issues/9982
Signed-off-by: Jo-Philipp Wich <[email protected]>
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js